import axios from "axios";

const instance = axios.create({
  baseURL:"http://47.106.237.118:4000",
})


export async function getVideoStream () {
const  res =  await instance.get("/getVideoStream",{ params:{
    device_id:"6c79f61a31ef7f1c57zvyg"
  }})
  if(res.status === 200) {
    console.log(res.data.result.url)
    return res.data.result.url
   
  }
   
} 